home *** CD-ROM | disk | FTP | other *** search
- <SCRIPT LANGUAGE=VBScript RUNAT=Server>
- Sub Application_OnStart
- Dim Vroot,iCount,idx
- Vroot = Server.MapPath("Default.asp")
- iCount = 0
- idx = InStrRev(Vroot, "\")
- if (idx > 0) and (idx < len(Vroot)) then
- Vroot = Left(Vroot,idx-1)
- end if
- Application("PubTypesPath")=Vroot & "\PubTypes"
- Application("XMLDirectory")=Vroot & "\XMLBATCH"
- Application("SiteIDFile")=Vroot & "\siteid.txt"
- Application("LogFile")=Vroot & "\csweblog.txt"
- End Sub
-
- Sub Session_OnStart
- if (InStr(Request.ServerVariables("URL"),"Default.asp")<1) then
- if (InStr(Request.ServerVariables("URL"),"About.asp")<1) then
- Response.Redirect("Default.asp")
- end if
- end if
- End Sub
- </SCRIPT>
-